import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: () => import("../views/Home.vue"),
    children: [
      {
        path: "/upimg",
        name: "upimg",
        component: () => import("../views/element_eg/upimage.vue"),
      },
      {
        path: "/verify",
        name: "verify",
        component: () => import("../views/element_eg/verify.vue"),
      },
      {
        path: "/formlook",
        name: "formlook",
        component: () => import("../views/element_eg/formlook.vue"),
      },
      {
        path: "/elCascader",
        name: "elCascader",
        component: () => import("../views/element_eg/elCascader.vue"),
      },
      {
        path: "/tz",
        name: "tz",
        component: () => import("../views/element_eg/tz.vue"),
      },
      {
        path: "/base",
        name: "base",
        component: () => import("../views/base.vue"),
      },
      {
        path: "/account",
        name: "account",
        component: () => import("../views/account.vue"),
      },
      {
        path: "/role",
        name: "role",
        component: () => import("../views/role.vue"),
      },
      {
        path: "/list",
        name: "list",
        component: () => import("../views/list.vue"),
      },
      {
        path: "/dispose",
        name: "dispose",
        component: () => import("../views/dispose.vue"),
      },
      {
        path: "/tree",
        name: "tree",
        component: () => import("../views/element_eg/tree.vue"),
      },
      {
        path: "/testTree",
        name: "testTree",
        component: () => import("../views/element_eg/textTree.vue"),
      },
      {
        path: "/testTable",
        name: "testTable",
        component: () => import("../views/element_eg/testTable.vue"),
      },
      {
        path: "/radioTest",
        name: "radioTest",
        component: () => import("../views/element_eg/radioTest.vue"),
      },
      {
        path: "/hardwarePrint",
        name: "hardwarePrint",
        component: () => import("../views/hardware/print.vue"),
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
